<!-- 模板文件 -->
<script type="text/javascript">
jQuery(function(){
	//换颜色
	jQuery('#colorChange span').click(function(){
			jQuery(this).addClass('s').siblings('span').removeClass('s');
			var _color = jQuery(this).attr('data-val');
			jQuery('.modl .f100-hd').css('border-bottom-color',_color);
		});
});
</script>

<div id="saveToDatabase">

  <div class="modl">
      <div class="f100-hd">
          <h3>客服中心&gt;&gt;</h3>
      </div>
      
      <div class="f100-bd">
      
          <ul class="wwBox1 clearFix">
          <?php 
          $wangwang_small = $wangwang;
		  $_k = 0;
          $min_line = 3;
		  //$_count = count($wangwang);
		  foreach($wangwang as $key=>$val){
               if($val['name'] == '应用服务访问权') continue;
			   echo '<li>';
               echo '<dl class="wwBox2 clearFix">';
               echo '<dt>'.$val['name'].'</dt>'; 
                  if(count($val) > 1){
                      foreach($val['group'] as $k=>$v) :
                           $v2 = explode(':',$v);
						   $v3 = count($v2) > 1 ? $v2[1] : $v2[0];
						   echo '<dd><span>'.$v3.':</span><a target="_blank" href="http://www.taobao.com/webww/ww.php?ver=3&touid='.$v.'&siteid=cntaobao&status=1&charset=utf-8"><img border="0" src="http://amos.alicdn.com/online.aw?v=2&uid='.$v.'&site=cntaobao&s=2&charset=utf-8" alt="点这里给我发消息" /></a></dd>';
                      endforeach;
                  }
               echo '</dl>';
               echo '</li>';
			   unset($wangwang[$key]);
			   $_k++;
			   if($_k >= $min_line) break;
           }
//		  $d_value = $min_line - $_count;
//		  if($d_value > 0){
//			  for($i=0;$i<$d_value;$i++){
//				  echo '<li><dl class="lv2 clearFix"></dl></li>';
//				  }
//			}
			
          ?>
          </ul>
    
        </div>
        
   </div>   
</div><!-- //saveToDatabase -->

   
<?php
	$data2['wangwang'] = $wangwang;
	$data2['wangwang_small'] = $wangwang_small;
	$data2['fat1'] = 2;
	$data2['fat2'] = 1;
	$this->load->view('keyboard_wangwang_view',$data2);
?>


<!--
<a target="_blank" href="http://amos.alicdn.com/getcid.aw?v=2&uid=幻想de味道&site=cntaobao&s=2&groupid=0&charset=utf-8">
<img border="0" src="http://amos.alicdn.com/online.aw?v=2&uid=幻想de味道&site=cntaobao&s=2&charset=utf-8" alt="点这里给我发消息" />
</a>

<a target="_blank" href="http://amos.alicdn.com/getcid.aw?v=2&uid=幻想de味道&site=cntaobao&s=1&groupid=0&charset=utf-8">
<img border="0" src="http://amos.alicdn.com/online.aw?v=2&uid=幻想de味道&site=cntaobao&s=1&charset=utf-8" alt="点这里给我发消息" />
</a>
-->